#!/bin/sh

. shell-config

defcfg=/etc/net/ifaces/default/options-eth

[ -f "$defcfg" ] || exit 0

if  [ -x /usr/sbin/NetworkManager -o -x /usr/sbin/connmand ]; then
	shell_config_set "$defcfg" NM_CONTROLLED yes
	shell_config_set "$defcfg" DISABLED yes
	if [ NM_Native = 'yes' ]; then
		shell_config_set "$defcfg" BOOTPROTO static
	else
		shell_config_set "$defcfg" BOOTPROTO dhcp
	fi
fi
